<h3>Editer un appartement</h3>

<%= error_messages_for :appart %>

<% form_for(:appart, :url => appart_path(@appart), :html => { :method => :put }) do |f| %>
<table class="edit_appart" rules="all">
 <tr>
 	<td align="right"><b>Prix :</b></td>
 	<td><%= f.text_field :prix , "size" => 3%> €</td>  
</tr>
<tr>
    <td align="right"><b>Taille :</b></td>
    <td><%= f.text_field :taille, "size" => 2 %> m²</td>
</tr>
<tr>
    <td align="right"><b>Ville :</b></td>
    <td><%= select("appart", "ville_id", @ville.collect {|p| [ p.ville, p.id ] }) %></td>
</tr>
<tr>
	<td colspan="2" align="center"><%= submit_tag "Mettre a jour" %></td>
</tr>
</table>
<% end %>

<%= link_to 'Voir', appart_path(@appart) %> |
<%= link_to 'Retour', apparts_path %>